package org.adream.account.dao;

import org.adream.account.entity.RoleResLinkEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface RoleResLinkDao {
	
	int replaceRoleRes(RoleResLinkEntity roleRes);
	
	void deleteRoleRes(@Param("rleId") String rleId,@Param("resId") String resId);
	
	void deleteRoleResByRleId(@Param("rleId") String rleId);

	void deleteRoleResByResId(@Param("resId") String resId);
	
	RoleResLinkEntity queryRoleResByIdAndDr(@Param("rleId")String rleId,@Param("resId")String resId,@Param("dr") Integer dr);
}